package com.csii.adhoc.dataready.mapper;


import com.csii.adhoc.dataready.TMgnDirPo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TMgnDirMapper {
    int deleteByPrimaryKey(String menuId);

    int insertOneTMgnDir(TMgnDirPo record);

    int insertSelective(TMgnDirPo record);

    TMgnDirPo selectByPrimaryKey(String menuId);

    int updateByPrimaryKeySelective(TMgnDirPo record);

    int updateByPrimaryKey(TMgnDirPo record);

    /*@Results(value = {
            @Result(id = true, column = "MODEL_ID", property = "modelId"),
            @Result(column = "MENU_ID", property = "menuId"),
            @Result(column = "NAME", property = "name"),
            @Result(column = "TYPE", property = "type"),
            @Result(column = "ATTR", property = "attr"),
            @Result(column = "PARENT_ID", property = "parentId"),
            @Result(column = "PATH", property = "path"),
            @Result(column = "MARK", property = "mark"),
            @Result(column = "SEQNO", javaType = int.class, property = "seqno"),
            @Result(column = "CREATED_BY", property = "createdBy"),
            @Result(column = "CREATED_DT", property = "createdDt"),
            @Result(column = "UPDATED_BY", property = "updatedBy"),
            @Result(column = "UPDATED_DT", property = "updatedDt")
    })
    @Select("select * from T_MGN_DIR where type=#{type,jdbcType=CHAR} order by parent_id,seqno")*/
    List<TMgnDirPo> selectListTMgnDir(TMgnDirPo tMgnDirPo);

}